﻿using DroneLib.Vehicle;
using System;
using System.Collections.Generic;
using System.Text;

namespace DroneLib
{
    public class ParamInfo
    {
        public Firmwares Firmware { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string DisplayName { get; set; }
        public string Units { get; set; }
        public bool hasRange { get; set; } = false;
        public decimal Min { get; set; }
        public decimal Max { get; set; }
        public bool HasIncrement { get; set; } = false;
        public decimal Increment { get; set; }
        public decimal DefaultValue { get; set; }
        public string User { get; set; }
        public bool HasValues { get; set; } = false;
        public Dictionary<string, string> Values { get; } = new Dictionary<string, string>();
        public bool HasBitMask { get; set; } = false;
        public Dictionary<decimal, string> Bitmask { get; } = new Dictionary<decimal, string>();

        public ParamInfo()
        { }

        public ParamInfo(string name)
        {
            this.Name = name;
            this.DisplayName = name;
        }
    }
}
